package org.example.chapter3;

public class forLoopDemo {
    public static void main(String[] args) {
        int sum1=0;
        int sum2=0;
        for (int x = 0; x < 10; x++) {
            sum1 = sum1 + x;
        }
        System.out.println(sum1);
        for (int x = 0; x < 10; ++x) {
            sum2 = sum2 + x;

        }
        System.out.println(sum2);
    }
}
